//-----------------------------------------------------------
//   Custom Interaction subclass to handle mouse clicking
//   and updates to player rotation
//
//   Unus
//-----------------------------------------------------------
class MenuInteraction extends Interaction;

var vector mouse3D, wmouse3D;
var mouseTrailer trail;

function Initialized()
{
   Log("Interaction initialized");
}

/*function vector STW(vector loc)
{
   local vector stwLoc;

   stwLoc = ScreenToWorld(loc);

   return stwLoc;
}
*/

function bool KeyEvent( out EInputKey Key, out EInputAction Action, FLOAT Delta )
{
   local PlayerController PlayerOwner;

   if( Action!=IST_Press )
      return false;
   else if( Key != IK_Escape)
      return false;
   else if( Action == IST_Press )
   {
      PlayerOwner = ViewportOwner.Actor;

      //modify this line to point to new midgame menu
      //PlayerOwner.ClientOpenMenu(class'GameEngine'.default.MainMenuClass);


      //return true;


   }
   return false;
}

defaultproperties
{
     bVisible=True
}
